package com.medicine.common;

import java.io.IOException;
import java.util.Properties;

/**
 * 读取property属性 
 * @author Administrator
 *
 */
public class LoadProperty {
	
	public static String getValueByKey(String key){
		Properties prop = new Properties();
		try {
			prop.load(LoadProperty.class.getClassLoader().getResourceAsStream("jdbc.properties"));
			Object obj = prop.get(key);
			return obj.toString();
		} catch (IOException e) {
			e.printStackTrace();
		}
		return null;
	}

}
